package cn.javass.dp.chianofresponsibility.example3;

public class GeneralManager extends Handle{
    @Override
    public String handleFeeRequest(String user, double fee) {

        String str = "";
        if (fee >= 1000) {
            if ("小李".equals(user)) {
                str = "总经理同意" + user + "聚餐费用" + fee + "请求";
            } else {
                str = "总经理不！！！同意" + user + "聚餐费用" + fee + "请求";

            }
        } else {
            if (this.successor != null) {
                return successor.handleFeeRequest(user, fee);
            }
        }
        return str;
    }
}
